using System.Threading.Tasks;
using System.Linq;
using System.Collections.Generic;

namespace MyApiApp.Api.Repository
{
    public interface IRepository<T>
    {
        IQueryable<T> Table{get;}
        T GetById(int id);

        void Insert(T entity);

        Task InsertAsync(T entity);

        void Updata(T entity);

        Task UpdataAsync(T entity);

        void Delete(int id);
    }
}